package edu.xmut.proxy.static_;

/**
 * 卖票代售点，也是代理类
 */
public class ProxyPoint implements SellTickets {
    /**
     * 含有真实主题对象的引用，执行真正的卖票业务
     */
    private TrainStation trainStation = new TrainStation();

    @Override
    public void sell() {
        System.out.println("代售点卖票收取额外费用(静态代理)");
        trainStation.sell();
    }
}
